package com.heima.user.controller.v1;

import com.heima.model.user.pojos.ApUser;
import com.heima.user.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/user")
public class ApUserController {
    @Autowired
    ApUserService apUserService;
    @GetMapping("/{id}")
    public ApUser findUserById(@PathVariable("id")Integer id){
     return apUserService.getById(id);
    }
}
